package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.enums.MemberTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 检查联系人联系方式是否可见请求参数
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/9/13
 */
@Getter
@Setter
@ToString
public class CheckDisplayRangePermByMemberTypeParam {
    /**
     * 组织id
     */
    @NotNull(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 联系人类型
     */
    @NotNull(message = "联系人类型不能为空")
    private MemberTypeEnum memberTypeEnum;
}
